<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterOpenShopMainProcessAddExportIndex extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_main_process', function (Blueprint $table) {
            $table->index(["orderNo"], "idx_orderNo");
            $table->index(["shopId", "orderNo"], "idx_shopId_orderNo");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_main_process', function (Blueprint $table) {
            $table->dropIndex("idx_orderNo");
            $table->dropIndex("idx_shopId_orderNo");
        });
    }
}
